package com.youbug.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.youbug.common.config.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * <p>
 * 字典类型表
 * </p>
 *
 * @author youbug
 * @since 2023-02-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="DicType对象", description="字典类型表")
public class DicType extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "字典类型名")
    private String name;

    @ApiModelProperty(value = "字典类型编码")
    private String code;

    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(exist = false)
    protected List<Dictionary> items;


}
